export default ()=>{
    var performance = window.performance;
    if(!performance){
        return false;
    }
    let entries = performance.getEntries();
    let data = {};
    for(var i=0;i<entries.length;i++){
         
        data[entries[i].name] = {
            url:entries[i].name,
           entryType:entries[i].entryType,
           //startTime:entries[i].requestStart,
           duration:+(entries[i].duration.toFixed(2)),
        };
    }
    return data;
}